package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface MotiveService {

	public Motive saveMotive(Motive motive);

	public Set<Motive> loadMotives();

	public Set<Motive> loadReferenceMotives(Set<Motive> motives);

	public Set<Motive> loadMotivesByIdSet(Set<Integer> motivesId);

	public Map<String, ?> loadMotiveObjectReferencedSet(Motive motive);

	public Map<String, ?> loadMotiveClassReferencedSet(Motive motive);

	public void deleteMotive(Motive motive);

	public void deleteMotives(Set<Integer> deleteMotivesId);

	public List<Motive> findAllMotives(Integer startResult, Integer maxRows);

	public Motive findMotiveByPrimaryKey(Integer id);

	public Integer countMotives();

	public Integer countMotives(CmiPagination page);

	public Integer countMotivesByName(String queryName);

	public Integer countMotivesByDetachedCriteria(CmiPagination page);

}
